﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using VTLive.Models;

namespace VTLive.Controllers
{
    [HandleError]
    public class HomeController : BaseController
    {
        public ActionResult Index()
        // Forsíða VTLive
        {
            StationRepository stations = new StationRepository();
            IQueryable<Station> allstations = stations.GetAllStations();
            
            ViewData["Message"] = "Welcome to VT live!";
            return View(allstations);
        }

        //public ActionResult About()
        //{
            //return View();
        //}
    }
}
